<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control"  content="no-transform">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>用户中心</title>
    <link href="/statics/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/statics/view/css/all.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
    <div class="row" style="margin-bottom: 80px;">
        <div class="orderStatus">
            <p class="bg-primary" style="padding: 15px;">订单号：${order.sn}&nbsp;&nbsp;&nbsp;&nbsp;
            [#if order.orderStatus == "2"]
                状态：<span>已取消</span>
            [#elseif order.orderStatus == "1"]
            [#elseif order.orderStatus == "0"]
                [#if order.paymentStatus=='0']状态：<span>未支付</span>&nbsp;&nbsp;<a href="/order/payment?sn=${order.sn}" class="btn btn-default">马上支付</a>
                     [#else]状态：<span>等待出单</span>
                [/#if]
            [#else]
            [/#if]
            </p>
            <p class="bg-info"  style="padding: 15px;">订单金额:${order.amount}元</p>
        </div>
        <p>订单日志</p>
        <table class="table table-bordered table-striped">
            <thead>
            <tr>
                <th>时间</th>
                <th>类型</th>
                <th>内容</th>
            </tr>
            </thead>
            <tbody>
            [#list logs as log]
            <tr>
                <th>${log.createDate?string("yy/MM/dd HH:mm")}</th>
                <td>
                    [#if log.type='create'] 订单创建
                    [#elseif log.type='modify']订单修改
                    [#elseif log.type='confirm']已确认
                    [#elseif log.type='payment']订单支付
                    [#elseif log.type='refunds']订单退款
                    [#elseif log.type='shipping']出单中
                    [#elseif log.type='returns']退单
                    [#elseif log.type='complete']订单完成
                    [#elseif log.type='cancel']订单取消
                    [#elseif log.type='other']其它
                    [/#if]
                </td>
                <td>${log.content}</td>
            </tr>
            [/#list]

            </tbody>
        </table>
    </div>
</div>

<script type="text/javascript" src="/statics/jquery/jquery.js"></script>
<script type="text/javascript" src="/statics/view/js/common.js"></script>
</body>
</html>